<%--
  Created by IntelliJ IDEA.
  User: codingBoy
  Date: 16/10/8
  Time: 上午11:26
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
  <head>
        <title>test</title>
        <script src="https://cdn.staticfile.org/jquery/1.10.2/jquery.min.js">
        </script>
        <style type="text/css">
            .father{
                width:100%;
                height:100%;
                position: absolute;
                background: #53e3a6;


            }
            .son{
                width:400px;
                height: 500px;
                position: relative;
                background-color: white;
                top:50%;
                left: 50%;
                margin-top:-250px;
                margin-left: -200px;



            }
        </style>
  </head>
  <body>
        <div class="father">
            <div class="son">

            </div>
        </div>





  </body>
<script type="text/javascript">
  function  myclick()
  {
    var object = new Object();
    object.firstname = "li";
    object.lastname = "zhang";
    var json = JSON.stringify(object);
    var formdata = new FormData();
    formdata.append("value",json);
    formdata.append("img","3");
    //formdata.append("file",$("#pic_img")[0].files[0]);
    var xhr = new XMLHttpRequest();
    xhr.open('POST',"AddModel",true);
    xhr.send(formdata);

  }

</script>
</html>
